.TH std::pmr::operator==,std::pmr::operator!= 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::pmr::operator==,std::pmr::operator!= \- std::pmr::operator==,std::pmr::operator!=

.SH Synopsis
   Defined in header <memory_resource>
   bool operator==( const std::pmr::memory_resource& a,            \fB(1)\fP \fI(since C++17)\fP
                    const std::pmr::memory_resource& b ) noexcept;
   bool operator!=( const std::pmr::memory_resource& a,            \fB(2)\fP \fI(since C++17)\fP
                    const std::pmr::memory_resource& b ) noexcept;     \fI(until C++20)\fP

   Compares the memory_resources a and b for equality. Two memory_resources compare
   equal if and only if memory allocated from one memory_resource can be deallocated
   from the other and vice versa.

   The != operator is synthesized from operator==. \fI(since C++20)\fP

.SH Return value

   1) &a == &b || a.is_equal(b)
   2) !(a == b)

.SH See also

   is_equal compare for equality with another memory_resource
            \fI(public member function)\fP
